package com.rc.saas.tenant.mapper.discount;


import com.rc.saas.tenant.common.base.BaseMapper;
import com.rc.saas.tenant.model.discount.TenantDiscountPolicy;
import com.rc.saas.tenant.model.discount.TenantDiscountPolicyExample;
import com.rc.saas.tenant.vo.discount.EnterpriseDiscountResultVo;
import com.rc.saas.tenant.vo.hlht.HlhtDiscountResultVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TenantDiscountPolicyMapper extends BaseMapper<Long, TenantDiscountPolicy, TenantDiscountPolicyExample> {

    Long insertReturnPrimaryKey(TenantDiscountPolicy tenantDiscountPolicy);

    TenantDiscountPolicy selectAllById(Long discountPolicyId);

    List<EnterpriseDiscountResultVo> listPageEnterpriseDiscount(@Param("enterpriseMemberId") Long enterpriseMemberId);

    List<HlhtDiscountResultVo> listPageHlhtDiscount(@Param("tenantCode") String tenantCode, @Param("memberId") Long memberId);
}